﻿using System;
using System.Linq.Expressions;

namespace Lucene.Linq.Expressions
{
    internal class IndexExpression : Expression
    {
        private readonly string alias;
        private readonly string name;

        internal IndexExpression(Type type, string alias, string name)
            : base((ExpressionType) LuceneExpressionType.Index, type)
        {
            this.alias = alias;
            this.name = name;
        }


        internal string Alias
        {
            get { return alias; }
        }

        internal string Name
        {
            get { return name; }
        }
    }
}